package TopDownProgramming;

import org.junit.Assert;
import org.junit.Test;

public class CopyOfCalculatorTestNormal {
	
	
	@Test(expected=IllegalArgumentException.class)
	public void tambahArgumenPertama(){
		Calculator c = new Calculator();
		c.tambah(null, 15);
		c.tambah(1, null);
	}
	
	@Test(expected=IllegalArgumentException.class)
	public void KurangArgumenPertama(){
		Calculator c = new Calculator();
		c.Kurang(null, 15);
		c.Kurang(1, null);
	}
	
	@Test(expected=IllegalArgumentException.class)
	public void KaliArgumenPertama(){
		Calculator c = new Calculator();
		c.Kali(null, 15);
		c.Kali(1, null);
	}
	
	@Test(expected=IllegalArgumentException.class)
	public void BagiArgumenPertama(){
		Calculator c = new Calculator();
		c.Bagi(null, 15);
	}
	
	@Test(expected=IllegalArgumentException.class)
	public void BagiNolArgumenPertama(){
		Calculator c = new Calculator();
		c.Bagi(1, 0);
	}
}
